﻿using Adapter;
using DtoCommom.Dto;

namespace DtoCommom.Entity
{
    public class UserInfo
    {
        public string Name { get; set; }

        public string Age { get; set; }
    }


    public class UserInfoToDto : DefaultProfile<UserInfo, UserInfoDto>
    {
        public UserInfoToDto()
        {

            AddE2DMember(d => d.Name, e => e.Name);
            AddE2DMember(d => d.UserName, e => e.Name);
        }
    }
}
